package com.cxy.datawarehouse.biz;

import com.cxy.datawarehouse.entity.ElementType;
import com.cxy.datawarehouse.entity.StandardCodeType;
import com.cxy.datawarehouse.service.ElementTypeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

@Component
@Slf4j
public class ElementTypeBiz {
    @Resource
    ElementTypeService elementTypeService;

    public List<ElementType> list() {
        return elementTypeService.list();
    }

    public void create(ElementType elementType) {
        elementTypeService.create(elementType);
    }
}
